<template>
  <div class="login-container flx-center">
    <div class="login-box">
      <SwitchDark class="dark" />
      <div class="login-left">
        <img class="login-left-img" src="@/assets/images/login_left.png" alt="login" />
      </div>
      <div class="login-form">
        <div
          class="top h-box justify-between pad-r-lg"
          style="background: var(--el-color-primary); border-top-left-radius: 10px; border-top-right-radius: 10px"
        >
          <h2 style="padding: 15px; margin: 0; margin-left: 0; font-size: 20px; color: #ffffff">
            {{ useUserStore().appTitle }}
          </h2>
          <p style="font-size: 20px; font-weight: bold; color: #ffffff">SR-SEC-300 V1.0</p>
        </div>
        <el-divider style="margin: 0" />
        <div class="h-box justify-center mg-t-lg">
          <div style="position: relative">
            <img style="width: 246px" src="@/assets/images/logo.png" alt="login" />
          </div>
          <div>
            <LoginForm />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="login">
import LoginForm from "./components/LoginForm.vue";
import SwitchDark from "@/components/SwitchDark/index.vue";
import { webConfig } from "../../config";
import { useUserStore } from "../../stores/modules/user";
</script>

<style scoped lang="scss">
@import "./index";
</style>
